<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<head>
{%mf head%}
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>{% block title %} {{ blog.title}}{% endblock %}</title>
<link rel="stylesheet" href="/themes/{{ blog.theme_name }}/style.css" type="text/css" />
<link rel="alternate" type="application/atom+xml" title="{{ blog.title }}" href="{{ blog.feedurl }}" />
<link href="/static/wlwmanifest.xml" type="application/wlwmanifest+xml" rel="wlwmanifest"/>
<link rel="icon" type="image/ico" href="/favicon.ico">

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<link rel="pingback" href="/pingback" />
<script type="text/javascript" src="/static/js/jquery.cookie.js"></script>
{% block head_block %}{% endblock %}
{%endmf%}
</head>
<body>
<div id="gc-container">
<div id="langpref">
 <span style="background:#CC4444 none repeat scroll 0% 0%;color:white;padding:5px;">
 正在加载...
 </span>
</div>
<script>

    function loginp()
    {
       $.getJSON("/do/info_login", function(ret){
              if( ret.islogin)
              {
                html='<span style="color:gray;padding:0px 6px">你好，'+ret.name+'</span> <a href="{{self.logouturl}}"> 注销</a>';
                if (ret.isadmin)
                html+=' <a href="/admin">管理</a>';
                $('#langpref').html(html);


              }
              else
              {
			     $('#langpref').html('<a href="/admin"> 登录</a>');
   				 if(typeof(get_check_area)!='undefined')
                	get_check_area({{blog.comment_check_type}});
			  }
       });
    }
    loginp();


</script>
<div id="gc-header">
	<h1 id="title">{{ blog.title|escape}}</h1>
</div> <!-- end gc-header -->

 <div id="codesiteContent">

	<div id="gc_header">
		
	</div>

<div id="gc-topnav">
  <h1></h1>

  <ul id="home" class="gc-topnav-tabs">
  	<li id="home_link" class="{%if ishome%}current_page_item{%else%}page_item{%endif%}">
      <a href="{{ blog.baseurl }}"  >首页</a>
    </li>
    {{self.m_list_pages}}
    {% block topmenu %}

    {% endblock %}
{%mf nav_menu%}
{%endmf%}
</ul>
</div>
<!-- end gc-topnav -->


 {% block content %}{{content}}{% endblock %}

</div> <!-- end codesite content -->

<div id="gc-footer" dir="ltr">
  <div id="gc-footer-img"></div>
  <div class="text" >
  	<div style="margin-bottom:6px;">
		Copyright © 2010 <a href="http://pediazone.appspot.com">pediazone</a> powered by <a href="http://code.google.com/appengine/" rel="nofollow">GAE</a>, All Rights Reserved.
  	</div>
  </div>
</div><!-- end gc-footer -->
{%mf footer%}
{%endmf%}
</div><!-- end gc-containter -->
</body>
</html>